import { _decorator, Component, Node, Event } from 'cc';
import EventManager from '../../Runtime/EventManager';
import { CONTROLLER_ENUM, EVENT_TYPE } from '../../Enums';
const { ccclass, property } = _decorator;

@ccclass('ManuManager')
export class ManuManager extends Component {
    handleUndo() {
        EventManager.Instance.emit(EVENT_TYPE.REVOKE_STEP);
    }
    handleRestart() {
        EventManager.Instance.emit(EVENT_TYPE.RESTART_LEVEL);
    }
    handleOut() {
        EventManager.Instance.emit(EVENT_TYPE.OUT_BATTLE);
    }
}

